package com.example.demo.mapper;


import com.example.demo.pojo.Admin;
import com.example.demo.pojo.login.LoginRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface LoginMapper {
    @Select("select * from library.admin where username=#{username} and password=#{password}")
    Admin login(LoginRequest request);
}
